package com.chat.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chat.domain.pojo.Group;

import java.util.List;

/**
 * @author wb
 * @since 2025-06-06
 */
public interface GroupService extends IService<Group> {

    List<Group> getGroupsByUserId(Integer userId);

    Boolean create(String name, String desc, String remark, Integer userId);

    Boolean quit(Integer groupId, Integer userId);

    Boolean addMember(String chatId, Integer friendId);

    List<Integer> getMembers(Integer groupId);
}
